package com.jy.adscm.operation.purchase.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.jy.adscm.bean.system.JyCode;
import com.jy.adscm.exception.AdscmSystemException;
import com.jy.adscm.operation.config.MyPage;
import com.jy.adscm.operation.purchase.bean.*;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;

/**
 * <p>
 * 机器型号bom对应数量的配置表 服务类
 * </p>
 *
 * @author lzf
 * @since 2019-05-05
 */
public interface MachinetypeService extends IService<Machinetype> {

    List<Bom> queryByBom(String key);

    List<JyCode> queryByMachineType(String type) throws AdscmSystemException;

    MyPage<Machinetype> queryConfig(QueryByPageParameter queryByPageParameter,String code);

    Integer createPlan(CreatePlan createPlan) throws Exception;

    MyPage<PurchasePlan> queryByPlan(String status,QueryByPageParameter queryByPageParameter);

    Integer updateByPlan(List<PurchasePlan> list) throws AdscmSystemException;

    List<JyCode> queryMachineList();

    List<Machinetype> queryByParentId(Long pid,String code);
}
